package com.zl.hyzg.service.impl;

import com.zl.hyzg.domain.User;
import com.zl.hyzg.mapper.RegistMapper;
import com.zl.hyzg.service.RegistService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class RgistServiceImpl implements RegistService {
@Autowired
private RegistMapper registMapper;
    public Integer regist(User user){
        Integer result = registMapper.addUser(user);
        return result;
    }
    public User check(String phone){
          return registMapper.check(phone);
    }

}
